package ecmdef;


public class EcmDef {

    public static void main(String[] args) {

        int num1, num2 = 0;
        try {
            num1 = Integer.parseInt(args[0]);
            num2 = Integer.parseInt(args[1]);
            if (num1 < 0 || num2 < 0) {
                throw new EcDef("输入的数是负数！");
            }
            System.out.println(num1 / num2);
        } catch (NumberFormatException | ArrayIndexOutOfBoundsException | ArithmeticException | EcDef e) {
            e.printStackTrace();

        }
    }
}
